<template>
	<div class="pdf_box">
		<iframe :src="pdf" width="100%" height="100%"></iframe>
	</div>
</template>

<script>
	export default{
		data(){
			return {
				pdf:"",
				id:""
			}
		},
		mounted() {
			this.id=this.$route.query.id;
			this.PdfCGuidelines()
		},
		methods:{
			async PdfCGuidelines(id){
				let res=await this.$kb.PdfCGuidelines({
					cgid:this.id
				})
				if(res.code == 200){
					this.pdf=res.data;
				}else{
					this.$message.error(res.msg);
				}
			},
		}
	}
</script>

<style lang="scss" scoped>
	.pdf_box{
		width:100%;height:100%;
	}
</style>
